package com.cskaoyan.service;

import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    @Override
    public void sayHello(String name) {
        System.out.println("学姐好");
    }

    @Override
    public String sayHello(String name, String name2) {
        String result = name + "好";
        System.out.println(result);
        System.out.println(name2 + "好");
        int i = 1 / 0;
        return result;
    }

    @Override
    public void login(String username, String password) {
        System.out.println("登录");
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void logout() {
        System.out.println("登出");
    }
}
